package com.ylhy.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ylhy
 * @Describe 返回结果对象
 * @create 2020-11-03 10:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult <T> {

    private Integer code;
    private String message;
    private T data;

    public CommonResult(Integer code, String message, Object o) {
        this(code,message,null);
    }
}
